jquery get div height dynamically

84

$(document).ready(function() {
    var divHeight = $('.col-1').height(); 
    $('.col-2').css('min-height', divHeight+'px');
});  
$('elem').height();
TypeError: Cannot read property 'offsetHeight' of null

Comments

Submit
0 Comments